#include "stdafx.h"
#include "PropertyInfo.h"
#include "Util.h"

CPropertyInfo::CPropertyInfo(QString filename)
{
	/*PropertyInfoInit();
	LPWSTR szPath = new WCHAR[MAX_PATH];
	SHGetSpecialFolderPath(NULL, szPath, CSIDL_APPDATA, FALSE);
	CString path(szPath);
	path += L"\\tisn\\";
	CStringA pathA(path);
	Tisn::Util::ForceDirectories(pathA);
	path += filename + L".cfg";
	m_filename = path;*/
}

CPropertyInfo::~CPropertyInfo()
{
}

BOOL CPropertyInfo::SaveData()
{
	/*ASSERT(m_filename);
	QFile file(m_filename, QFile::modeWrite | CFile::modeCreate);
	CArchive ar(&file, CArchive::store);

	if (Seria(ar) == TRUE)
	{
		ar.Close();
		file.Close();
		return TRUE;
	}
	else
	{
		return FALSE;
	}*/
	return FALSE;
}

BOOL CPropertyInfo::LoadData()
{
	/*ASSERT(m_filename);
	PropertyInfoInit();
	int nRet = _taccess(m_filename, 0);
	if (!(nRet == 0 || nRet == EACCES))
	{
		return TRUE;
	}
	CFile file(m_filename, CFile::modeRead);
	CArchive ar(&file, CArchive::load);
	return Seria(ar);*/
	return TRUE;
}
